import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'


const routes: Array<RouteRecordRaw> = [
  {
    path: '/news/:id',
    name: 'news',
    component: ()=>import("@/components/new-index.vue"),
    props:true
  },
  {
    path: '/news/detail-list/:t_content_pk',
    name: 'home',
    component: ()=>import("@/components/detail-list.vue"),
    props:true
  },
  {
    path: "/:pathMatch(.*)*",
    redirect: "/news/405"
  }

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
